﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
//
using PerceptiveMCAPI;
using PerceptiveMCAPI.Types;
//

namespace PerceptiveMCAPI_Test
{
   public partial class show_listMergeVars : System.Web.UI.UserControl
   {
      public void Display( listMergeVarsOutput output )
      {
         this.Visible = true;
         lblListId.Text = output.inputParms.id;
         gvlistMergeVars.DataSource = output.result;
         gvlistMergeVars.DataBind();
      }

      protected string FormatChoices( object choices )
      {
         return ApiHelper.MakeStringFromList( choices as List<string> );
      }
   }
}